{% extends "base.html" %}
{% block title %}
登录
{% endblock title %}
{% block header %}
{% endblock header %}
{% block body %}
<div class="row mt-4">
    <div class="col-sm"></div>
    <div class="col-sm">
        <form action="{{ url_for('user.login') }}" method="POST" style="opacity:0.8;">
            <div class="form-group">
                <label for="exampleInputEmail1">邮箱</label>
                <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp"
                    name="email">
                <small id="emailHelp" class="form-text text-muted">我们会将你的邮箱用于非法用途</small>
            </div>
            <div class="form-group">
                <label for="exampleInputPassword1">密码</label>
                <input type="password" class="form-control" id="exampleInputPassword1" name="password">
            </div>
            {# <div class="form-group form-check">
                <input type="checkbox" class="form-check-input" id="exampleCheck1">
                <label class="form-check-label" for="exampleCheck1">Check me out</label>
            </div> #}
            {% for message in get_flashed_messages() %} 
            <div class="form-group">
                <div class="text-danger">{{ message }}</div>
            </div>  
            {% endfor %}
            <div class="form-group">
                <button type="submit" class="btn btn-primary btn-block">立即登录</button>
            </div>
        </form>
    </div>
    <div class="col-sm"></div>
</div>
{% endblock body %}